package com.ruoyi.business.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

/**
 * 购物车对象 shopping_car
 * 
 * @author 吴倩芸
 * @date 2023-03-07
 */
@Data
@TableName("shoppingCar")
public class ShoppingCar extends BaseEntity
{
    private static final long serialVersionUID = 1L;

        /** $column.columnComment */
            private Long id;

        /** 产品的id */
                @Excel(name = "产品的id")
                @TableField(value = "productId")
            private Long productId;

        /** 用户id */
                @Excel(name = "用户id")
                @TableField(value = "userId")
            private Long userId;

        /** 选择数量 */
                @Excel(name = "选择数量")
                @TableField(value = "num")
            private Long num;

        /** 价值 */
                @Excel(name = "价值")
                @TableField(value = "worth")
            private Double worth;

        /** 加入购物车的时间 */
                @JsonFormat(pattern = "yyyy-MM-dd")
                @Excel(name = "加入购物车的时间", width = 30, dateFormat = "yyyy-MM-dd")
                @TableField(value = "addTime")
            private Date addTime;

        /** 购买的时间 */
                @JsonFormat(pattern = "yyyy-MM-dd")
                @Excel(name = "购买的时间", width = 30, dateFormat = "yyyy-MM-dd")
                @TableField(value = "buyTime")
            private Date buyTime;



}
